parser grammar Demo2Parser;

options { tokenVocab=Demo2Lexer; }

// Parser
root: sqlStatements  EOF
         ;

sqlStatements
    : (sqlStatement  SEMI? )*
    ;

sqlStatement
    : ddlStatement;

ddlStatement
    : createTable;

createTable
    : CREATE (OR REPLACE)? TEMPORARY? TABLE;
